# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=hare-compress
pkgver=0_git20231101
_commit=562706946871d1c994f60361883269916cbaa08e
pkgrel=0
pkgdesc="Compression algorithms for Hare"
url="https://git.sr.ht/~sircmpwn/hare-compress"
arch="noarch !armhf !armv7 !ppc64le !s390x !x86 !loongarch64" # blocked by hare
license="MPL-2.0"
makedepends="hare"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-compress/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
7afc3727ff198c4284bedd92f3e6b6a1e1eaa536616adb28d4cda523d740b6882a4cb7a708fa418d0ddda9616232353c13e1a0afe3bbefe67c59246d77270d15  hare-compress-562706946871d1c994f60361883269916cbaa08e.tar.gz
"
